package fbd.crud.trabfinal.view;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.ButtonGroup;
import javax.swing.JMenuBar;
import javax.swing.KeyStroke;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JFrame;

public class framePrincipal extends JFrame{

	private static final long serialVersionUID = 1L;
	public framePrincipal(String a){
		super(a);
	}
	public void createGUI() {//Como se fosse a main()
		Toolkit tk = Toolkit.getDefaultToolkit();  
		//int xSize = ((int) tk.getScreenSize().getWidth());  
		//int ySize = ((int) tk.getScreenSize().getHeight());  
		//Tamanho da tela, pra ficar em tela cheia!!!
		
		JFrame.setDefaultLookAndFeelDecorated(true);
		// Cria todo o setup da janela
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		janelaPrincipal app = new janelaPrincipal();
		setJMenuBar(app.createJMenuBar());
		//setSize(xSize, ySize);
		setSize(1024,768);
		setVisible(true);
	}
}
